The foreach() function allows you to loop though an array to process the values as variables.